import 'package:flutter/material.dart';

import 'component_json_listview.dart';

class ComponentArea2 extends StatelessWidget {
  const ComponentArea2({super.key});

  @override
  Widget build(BuildContext context) {
    // 模拟json数据
    final List<Map<String, dynamic>> data = [
      {
        "url": "https://example.com/1",
        "title": "[推荐]如何让富婆爱上我",
        "time": "2025-04-05"
      },
      {
        "url": "https://example.com/2",
        "title": "[推荐]21天学会如何与富婆相处",
        "time": "2025-04-06"
      },
      {
        "url": "https://example.com/3",
        "title": "[推荐]狩猎富婆最佳实践",
        "time": "2025-04-07"
      }
    ];

    return Scaffold(
      body: Padding(
        padding: const EdgeInsets.all(16),
        child: ComponentJsonListview(jsonData: data),
      ),
    );
  }
}